package com.ys;

import java.util.ArrayList;
import java.util.List;

import com.ys.web.pojo.MenuInfo;

public class WebConstants {

	public static final int MAX_REQUEST_ROW_EACH = 1000;
	
	public static final String SUCCESS_CODE="1";
	
	public static final String FAIL_CODE="0";
	
	public static final Integer SUPER_USER = 1;
	
	public static final Integer SEM_MANAGER_USER = 2;
	
	public static final Integer SEM_USER = 3;
		
	public static final String SECURITY_SESSION_USERNAME_ATTR = "username";
	
	public static final String SECURITY_SESSION_USERID_ATTR ="userId";
	
	public static final String SECURITY_SESSION_MENU_ATTR = "menus";
	
	public static final String MODULES_SEM_WORK = "客服工作台";
	
	public static final String MODULES_SEM_MANAGER = "客服经理工作台";
	
	public static final String MODULES_SEM_SUPERUSER = "客服系统管理";
	
//	public static final String MODULES_YWZC_SUPERUSER = "业务支持工作台";
	
//<<<<<<< HEAD
	/**推广数据_最大行数*/
	public static final int MAX_REQUEST_ROW_EACH_PROMOTE = 2000;
//=======

	
	public static final String PLATFORM_TAG_BAIDU = "baidu";
	
	public static final String PLATFORM_TAG_360  = "360";
	
	public static final List<MenuInfo> semMenu = new ArrayList<MenuInfo>();
	
	public static final List<MenuInfo> managerMenu = new ArrayList<MenuInfo>();
	
	public static final List<MenuInfo> systemMenu = new ArrayList<MenuInfo>();
	
	/**业务支持工作台*/
	public static final List<MenuInfo> ywzcMenu = new ArrayList<MenuInfo>();
	
	static{
		semMenu.add(new MenuInfo("industryGoalController.do?companyNotGoal","未达标客户"));
		semMenu.add(new MenuInfo("companyController.do?showSemCompany","推广数据管理"));
		semMenu.add(new MenuInfo("companyController.do?showOriginalityReport","创意报告管理"));
		semMenu.add(new MenuInfo("companyController.do?semBackupCompany","推广账户备份"));
		semMenu.add(new MenuInfo("companyController.do?semShowGoodCompany","优秀账户备份"));
		semMenu.add(new MenuInfo("companyController.do?showSemCompanyDo", "公司-推广账号管理"));
		semMenu.add(new MenuInfo("contractInfoController.do?showContractInfo", "合同-广告信息管理"));
		semMenu.add(new MenuInfo("contractInfoController.do?showAdOfflineInfo","广告到期提醒"));
		semMenu.add(new MenuInfo("industryStandardController.do?industryStandard","行业指标"));
		semMenu.add(new MenuInfo("industryConversionwordController.do?industryConversionwordYsb","行业转化词(易数宝数据)"));
		semMenu.add(new MenuInfo("industryConversionwordController.do?industryConversionwordBaidu","行业转化词(百度数据)"));
		semMenu.add(new MenuInfo("materialController.do?showMaterial","物料生成"));
		semMenu.add(new MenuInfo("materialController.do?manageMainBussiness","主营业务管理"));
		semMenu.add(new MenuInfo("companyController.do?customerFollowUp","客户跟进管理"));
		semMenu.add(new MenuInfo("specialCompanyController.do?showSpecialCompany","特殊消费用户管理"));
		
	}
	

	

	static{
		managerMenu.add(new MenuInfo("industryGoalController.do?industryGoal","行业目标值管理"));
		managerMenu.add(new MenuInfo("industryGoalController.do?companyGoal","客户达标情况"));
		managerMenu.add(new MenuInfo("industryGoalController.do?companyNotGoal","未达标客户"));
		managerMenu.add(new MenuInfo("industryGoalController.do?companyTotalNotGoal","未达标客户统计"));
	/*	managerMenu.add(new MenuInfo("companyController.do?manageBackupCompany", "推广账户备份"));
		managerMenu.add(new MenuInfo("companyController.do?showGoodCompany", "优秀账户备份"));*/
		managerMenu.add(new MenuInfo("industryController.do?showIndustry", "行业-象限信息管理"));
		managerMenu.add(new MenuInfo("companyController.do?showManageCompany", "客服分配管理"));
		managerMenu.add(new MenuInfo("industryKeywordController.do?showIndustryKeyword", "行业关键词查询"));
		managerMenu.add(new MenuInfo("bestKeywordController.do?showBestKeyword", "行业最优关键词方案"));
		managerMenu.add(new MenuInfo("industryStandardController.do?industryStandardManager","行业指标"));
		managerMenu.add(new MenuInfo("industryConversionwordController.do?industryConversionwordYsb","行业转化词(易数宝数据)"));
		managerMenu.add(new MenuInfo("industryConversionwordController.do?industryConversionwordBaidu","行业转化词(百度数据)"));
		managerMenu.add(new MenuInfo("companyController.do?customerFollowUp","客户跟进管理"));
		
	}
	
	static{
		systemMenu.add(new MenuInfo("userController.do?showUser", "用户信息管理"));
		
		
	}
	
//	static{
//		ywzcMenu.add(new MenuInfo("businessSupportController.do?showCompanyMsg", "客户信息管理"));
//	}
	
	
	public static final String[] PUBLIC_PAGE = {
			"index.do",
			"logout.do",
			"checkUser.do"
	};
	
	public static final String[] COMMON_PERMISSON ={
			"userIndex.do",
			"getMenu.do"
			
	};
	
	public static final String[] SUPER_USER_PERMISSION = {
			"csvController.do",
			"companyController.do",
			"promoteDataController.do",
			"industryController.do",
			"userController.do",
			"accountController.do",
			"uploadFile.do",
			"quadrantController.do",
			"importStateController.do",
			"industryKeywordController.do",
			"bestKeywordController.do",
			"industryStandardController.do",
			"contractInfoController.do",
			"industryConversionwordController.do",
			"industryGoalController.do",
//			"businessSupportController.do"
			"materialController.do",
			"specialCompanyController.do"
	};
	
	public static final String[] SEM_USER_PERMISSON = {
			"csvController.do",
			"companyController.do",
			"promoteDataController.do",
			"industryController.do",
			"userController.do",
			"accountController.do",
			"uploadFile.do",
			"quadrantController.do",
			"importStateController.do",
			"industryKeywordController.do",
			"bestKeywordController.do",
			"industryStandardController.do",
			"industryConversionwordController.do",
			"contractInfoController.do",
			"industryGoalController.do",
			"uploadBebFile.do",	
			"backupController.do",
//			"businessSupportController.do"
			"materialController.do",
			"specialCompanyController.do"
			};
	

	public static final String[] SEM_PERMISSON ={
			"csvController.do",
			"promoteDataController.do",
			"uploadFile.do",
			"importStateController.do",
			"industryStandardController.do",
			"industryConversionwordController.do",
			"industryGoalController.do",
			"materialController.do",
			
	};
	
	

}
